package net.tribal.comic.services

import net.tribal.comic.entities.User

class AutenticateService {

    boolean transactional = true
	
	/**
	 * 
	 * @param alias
	 * @param password
	 * @return
	 */
    def validate(alias,password) {
		def userInstance = User.findWhere(alias:alias, password:password)
		println "validate de autenticate service " + userInstance
		if (userInstance) {  return userInstance }
		
		return null
    }
}
